package leetcode.code2011;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution2011 implements IDebug {

	public abstract int finalValueAfterOperations(String[] operations);

	@Override
	public void debug1() {
		String str = "[\"--X\",\"X++\",\"X++\"]";
		String[] operations = HelpDebug.str2array2(str);
		int e = 1;
		int r = this.finalValueAfterOperations(operations);
		HelpDebug.compare(e, r);

	}

	@Override
	public void debug2() {
		String str = "[\"++X\",\"++X\",\"X++\"]";
		String[] operations = HelpDebug.str2array2(str);
		int e = 3;
		int r = this.finalValueAfterOperations(operations);
		HelpDebug.compare(e, r);

	}

	@Override
	public void debug3() {
		String str = "[\"X++\",\"++X\",\"--X\",\"X--\"]";
		String[] operations = HelpDebug.str2array2(str);
		int e = 0;
		int r = this.finalValueAfterOperations(operations);
		HelpDebug.compare(e, r);

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
